#include <World.hpp>

Universe::World::~World()
{
    for (int i=0 ; i<this->StaticBody.size() ; i++)
		delete this->StaticBody[i];
	this->StaticBody.clear();

	for (int i=0 ; i<this->DynamicBody.size() ; i++)
		delete this->DynamicBody[i];
	this->DynamicBody.clear();

	for (int i=0 ; i<this->car.size() ; i++)
		delete this->car[i];
	this->car.clear();
}

Universe::World::World()
{}

unsigned int Universe::World::getStaticBodiesQty()
{
    return this->StaticBody.size();
}

unsigned int Universe::World::getDynamicBodiesQty()
{
    return this->DynamicBody.size();
}

unsigned int Universe::World::getCarsQty()
{
    return this->car.size();
}
